<template>
  <div class="home">
    <el-form v-if="text" :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
      <el-form-item label="流程名称">
        <el-input v-model="formLabelAlign.name"></el-input>
      </el-form-item>
      <el-form-item label="流程编号">
        <el-input v-model="formLabelAlign.region"></el-input>
      </el-form-item>
      <el-form-item >
        <el-button type="primary" class="submint" icon="el-icon-edit" @click.native="onSubmit">添加</el-button>
      </el-form-item>
    </el-form>
    <addimg
      :ImgPathName="IDPositive"
      :ImgID="IDother"
      v-if="text == false"
    ></addimg>
  </div>
</template>
<script>
  import addimg from 'cs/addimg/addimage'

  export default {
    props: {
      imgflag: {
        type: Boolean
      }
    },
    components: { addimg },
    data() {
      return {
        text: this.imgflag,
        IDPositive: this.$ENV.IDPOSITIVE,
        IDother: '1', //用户ID
        labelPosition: 'right',
        formLabelAlign: {
          name: '',
          region: '',
          type: ''
        }
      }
    },
    methods: {
      onSubmit() {
        this.text = false
      }
    },
    watch: {},
    computed: {
      //计算属性
    },
    created() {

    },
    mounted() {
      //生命周期
    }
  }
</script>
<style scoped>
  .home {
    width: 100%;
    height: 100%;
  }

  .submint {
    margin-left: 30%;
    /*float: right;*/
    /*margin-bottom: 10px;*/
  }

</style>
